# -*- coding: utf-8 -*-

from odoo_contrib.exceptions import BaseOdooException


class UtilsException(BaseOdooException):
    # category
    # miniapp: 30
    category = 'wechat-miniapp'

    # sub category:
    #   - http.get 10
    #   - http.post 11

    co_msg_mapping = {
        301050: {
            'message': 'Unexpected exception',
            'http_code': 500,
            'sub_category': 'http.get'
        },
        301150: {
            'message': 'Unexpected exception',
            'http_code': 500,
            'sub_category': 'http.post'
        },
    }
